#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
	int i = 0;
	int sz = 0;
	scanf("%d", &sz);
	int left = 0, right = sz - 1;
	char str[30] = { 0 };
	for (i = 0; i < sz; i++)
	{
		if (i == 0 || i == sz - 1)
			str[i] = '*';
		else
			str[i] = ' ';
	}
	while (left<=right)
	{
		for (i = 0; i < sz; i++)
			printf("%c", str[i]);
		printf("\n");
		str[++left] = '*';
		str[--right] = '*';
		str[left-1] = ' ';
		str[right+1] = ' ';
	}
	while (right!=sz-1)
	{
		for (i = 0; i < sz; i++)
			printf("%c", str[i]);
		printf("\n");
		str[--left] = '*';
		str[++right] = '*';
		str[left + 1] = ' ';
		str[right - 1] = ' ';
	}

	return 0;
}